<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>首页</title>
</head>
<body>
<a href="/index/vote">投票</a>

{if condition = "($name =='') or ($name ==null)"}
<a href="/index/register">注册</a>
<a href="/index/login">登录</a>
{else/}
{$name}<a href="/index/loginout">退出登录</a>
{/if}
</body>
</html>